<!DOCTYPE html>
{% load static %}
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="{% static 'plugins/bootstrap-4.6.2-dist/css/bootstrap.min.css' %}" />
    <link rel="stylesheet" href="{% static 'plugins/bootstrap-3.4.1-dist/css/bootstrap.min.css' %}" />
    <script src="{% static 'js/jquery.min.js' %}"></script>
    <script src="{% static 'plugins/bootstrap-4.6.2-dist/js/bootstrap.min.js' %}"> </script>
    <style>
        body::-webkit-scrollbar {
            display: none;
            /* 在Chrome和Safari中隐藏滚动条 */
        }
    </style>
    {% block css%}
    {% endblock css%}
</head>

<body>
    {% block head %}
    <nav class="navbar navbar-expand-lg navbar-light bg-light " id="id_nav" style="width: 100%;z-index: 999;">
        <div class="container">
            <a class="navbar-brand" href="/home/" style="margin-top: -8px;">
                <img src="{% static 'imgs/5.png'%}"
                    style="width: 200px;height: 68px;margin-right: 5px;margin-top: -25px;background-color: rgb(248,249,250);">
            </a>
            <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
                aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
            </button>

            <!-- <div class="collapse navbar-collapse" id="navbarSupportedContent"> -->
            <ul class="navbar-nav mr-auto">
                <li class="nav-item active">
                    <a class="nav-link" href="#">订单信息<span class="sr-only">(current)</span></a>
                </li>
                <li class="nav-item active">
                    <a class="nav-link" href="#">出库数据</a>
                </li>
                <li class="nav-item active">
                    <a class="nav-link" href="/depart/list/">部门管理 </a>
                </li>
                <li class="nav-item active">
                    <a class="nav-link" href="/user/list/">员工管理</a>
                </li>
                <li class="nav-item active">
                    <a class="nav-link" href="/number/list/">靓号管理</a>
                </li>
                <li class="nav-item active">
                    <a class="nav-link" href="/ad/list/">管理员</a>
                </li>
                <li class="nav-item active">
                    <a class="nav-link" href="/paint/bar/">统计分析</a>
                </li>
            </ul>
            <a class="nav-link" href="/login/">登录</a>
            <div class="btn-group">
                <button
                    style="border-radius: 5px;border: 1px solid rgb(228, 182, 182);background-color: rgb(219, 193, 174);"
                    type="button" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                    <span class="glyphicon glyphicon-user">尹志杰</span>
                </button>
                <div class="dropdown-menu">
                    <a class="dropdown-item" href="#">个人信息</a>
                    <a class="dropdown-item" href="#">其他设置</a>
                    <a class="dropdown-item" href="#">关于我们</a>
                    <div class="dropdown-divider"></div>
                    <a class="dropdown-item" href="#">退出登录</a>
                </div>
            </div>
        </div>
        </div>
    </nav>

    {% endblock head %}
    {% block body %}

    {% endblock body %}
</body>
{% block js %}
<script>
    window.onscroll = function () { myFunction() };
    var navbar = document.querySelector("#id_nav");
    function myFunction() {
        if (window.pageYOffset >= 50) {
            navbar.style.position = "fixed";
            navbar.style.top = "0";
            navbar.style.screenLeft = "104.5px";
        } else {
            navbar.style.position = "relative";
        }
    }
</script>
{% endblock js %}

{% block footer%}
<div style="display: flex;justify-content: space-evenly;margin-top: 15px;">
    <span>Copyright © 2012 crm.com All rights reserved. 冀ICP备16003820号-2</span>
    <span>公司声明 | 服务协议</span>
</div>
{% endblock footer%}

</html>